package com.neelsys.domain.visualization;

public enum CourseLevelEnum {

	PRE_INTERMEDIATE,INTERMEDIATE,GRADUATE,POSTGRADUATE,DOCTORATE,POSTDOCTORATE,NONE;
	
	public static CourseLevelEnum nextValidCourseLevel(CourseLevelEnum curCourseLevel){
		CourseLevelEnum nextCourseLevel=null;
		
		switch(curCourseLevel){
		case PRE_INTERMEDIATE:
			nextCourseLevel=INTERMEDIATE;
			break;
		case INTERMEDIATE:
			nextCourseLevel=GRADUATE;
			break;
		case GRADUATE:
			nextCourseLevel=POSTGRADUATE;
			break;
		case POSTGRADUATE:
			nextCourseLevel=DOCTORATE;
			break;
		default:
			nextCourseLevel=NONE;
		
		}
		
		
		return nextCourseLevel;
	}
}
